<template>
	<view class="flex-center">
		<image :src="list[type]['url']" mode="widthFix" :title="list[type]['name']" :style="{width:size,height:size}">
	</view>
</template>

<script>
	export default {
		name:"user-auth-icon",
		props: ['type','size'],
		data() {
			return {
				list:{
					merchant: {
						name:'商家',
						url:'/static/images/icon-check-merchant.png'
					},
					admin:{
						name:'管理员',
						url:'/static/images/icon-check-admin.png'
					},
					vip:{
						name:'会员',
						url:'/static/images/icon-check-vip.png'
					}
				}
			};
		}
	}
</script>

<style>

</style>